/**
 * Created by mylxsw on 14-6-14.
 */


$(function(){

    var name = localStorage.name || '';
    $("input[name='name']").val(name);

    $("button.save").click(function(){
       var name = $("input[name='name']").val();
       localStorage.name = name;
        alert("保存成功!");
    });

    if(storage.getValue('token', '') != ''){
        $("input[name='token']").val(storage.getValue('token'));
    }

});